<template>
  <el-button type="warning" @click.prevent="onclick()">{{ title }}</el-button>
</template>

<script>
import {removeToken} from "../../utils/auth";

export default {
  name: "echarts",
  data:()=>{
    return{
      title:"echarts"
    }
  },
  watch:{},
  created() {
  },
  methods:{
onclick(){
  removeToken()
  this.$router.push('/login')
}
  }
}
</script>

<style scoped>

</style>
